package com.changgou.goods.dao.mydao;

import com.changgou.goods.pojo.Brand;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface BrandMapper_test extends Mapper<Brand> {

    @Select("SELECT t3.name FROM tb_category t1 INNER JOIN tb_category_brand t2 ON t1.id = t2.category_id INNER JOIN tb_brand t3 ON t3.id = t2.brand_id WHERE t1.name = #{categoryName}")
    public List<Map> findBrandListByCategoryName(String categoryName);

}
